package com.entertainment.ticketing.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserUpdateProfileRequest {
    @Size(min = 2, max = 50, message = "姓名至少2个字符")
    private String realName;

    @Email(message = "请输入有效的邮箱地址")
    private String email;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "请输入有效的手机号码")
    private String phone;

    // 允许外部头像URL（可选），上传头像接口单独处理
    @Pattern(regexp = "^https?://.*$", message = "头像地址需以 http(s):// 开头")
    private String avatarUrl;
}